package cn.stylefeng.guns.modular.tool.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.tool.entity.ToolExpressReconciliationYzx;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationYzxParam;
import cn.stylefeng.guns.modular.tool.model.params.ToolExpressReconciliationZtxParam;
import cn.stylefeng.guns.modular.tool.model.result.ToolExpressReconciliationYzxResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

import org.apache.poi.ss.usermodel.Workbook;
import org.springframework.web.multipart.MultipartFile;

/**
 * <p>
 * 邮政对账管理新 服务类
 * </p>
 *
 * @author zhucx
 * @since 2023-07-07
 */
public interface ToolExpressReconciliationYzxService extends IService<ToolExpressReconciliationYzx> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2023-07-07
     */
    void add(ToolExpressReconciliationYzxParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2023-07-07
     */
    void delete(ToolExpressReconciliationYzxParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2023-07-07
     */
    void update(ToolExpressReconciliationYzxParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-07-07
     */
    ToolExpressReconciliationYzxResult findBySpec(ToolExpressReconciliationYzxParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2023-07-07
     */
    List<ToolExpressReconciliationYzxResult> findListBySpec(ToolExpressReconciliationYzxParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2023-07-07
     */
     LayuiPageInfo findPageBySpec(ToolExpressReconciliationYzxParam param,String condition,Long operateId);

 	LayuiPageInfo findPageBySpecZtxDz(ToolExpressReconciliationYzxParam param,String condition);

  	ResponseData getExceldata(MultipartFile file, Long reconciliationId, ResponseData data)throws Exception;

	boolean saveBatchList(List<ToolExpressReconciliationYzxParam> list);

	Workbook exportToExcel(Long reconciliationId);

	void deleteBySpec(ToolExpressReconciliationYzxParam param);

}
